package com.haikesi.api.organization.dao;

import com.haikesi.api.organization.domain.po.OrganizationPO;
import com.haikesi.api.organization.domain.vo.OrganizationSearchVO;
import com.haikesi.api.organization.domain.vo.OrganizationTreeSearchVO;
import com.haikesi.api.organization.domain.vo.OrganizationTreeVO;
import com.haikesi.api.organization.domain.vo.OrganizationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface OrganizationDao extends Mapper<OrganizationPO> {
    List<OrganizationVO> getList(OrganizationSearchVO searchVO);

    void deleteByParentId(@Param("parentId") String parentId);

    List<OrganizationTreeVO> getTreeList(OrganizationTreeSearchVO searchVO);
}